<?php

/*************************************************************************

	FILE INCLUDE

**************************************************************************/
include_once '../lib/Template.class.php';
$debug_mode_value = 0;
checkLogin();



/*************************************************************************

	USER SCRIPT

***************************************************************************/
$userscript =<<<js
    <script type="text/javascript">
        <!--
		function submitForm(no){

			del=confirm("delete?");

			if (del == true)
			{
				frm= document.getElementById("deleteForm");
				frm.user_cd.value=no;
				frm.submit();
			}

		}
		function checkForm(){
			frm= document.getElementById("insertForm");
			if(frm.user_id.value==""){
				alert("require USER ID");
				return false;
			}
			else if(frm.user_nm.value==""){
				alert("require USER NAME");
				return false;
			}
			else if(frm.user_pw.value==""){
				alert("require USER PASSWORD");
				return false;
			}else{
				return true;
			}
		}
        //-->
    </script>
js;


/*************************************************************************

		PAGE MAIN PROCESS

***************************************************************************/

$db->conn();
$query = "select * from user_tb";
$list = $db->select($query);
$db->close();


/*************************************************************************

	TEMPLATE PROCESS

***************************************************************************/
$body = "UserManagement.html";

$tpl = new Template();
$tpl->setDefine($body);

$tpl->assign("list", $list);
$tpl->assign("selectTotal", $db->selectTotal);

$tpl->setPrint();





/*************************************************************************

	AJAX FUNCTION : Template_ function

***************************************************************************/



















?>
